package org.mx.test.multi.bean;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;

@SuppressWarnings("javadoc")
@Getter
public class AccountBean {
	private CodeNameTuple account;
	private List<CodeNameTuple> roles = new ArrayList<>();

	public static CodeNameTuple of(String code, String name) {
		return new CodeNameTuple(code, name);
	}

	public AccountBean(CodeNameTuple accountTuple, CodeNameTuple... roleTuples) {
		super();
		this.account = accountTuple;
		roles = new ArrayList<>();
		for (CodeNameTuple role : roleTuples) {
			roles.add(role);
		}
	}
}
